import request from '@/utils/request'

// 查询项目还本付息列表
export function listDealServicing(query) {
  return request({
    url: '/servicing/dealServicing/list',
    method: 'get',
    params: query
  })
}

// 查询项目还本付息详细
export function getDealServicing(id) {
  return request({
    url: '/servicing/dealServicing/' + id,
    method: 'get'
  })
}

// 保存项目还本付息
export function saveDealServicing(data) {
  return request({
    url: '/servicing/dealServicing/save',
    method: 'post',
    data: data
  })
}

// 删除项目还本付息
export function delDealServicing(id) {
  return request({
    url: '/servicing/dealServicing/' + id,
    method: 'delete'
  })
}

// 导出项目还本付息
export function createPlan(data) {
  return request({
    url: '/servicing/dealServicing/createPlan',
    method: 'post',
    data: data
  })
}

